import instance from '@/utils/request.js'

// 获取企业列表
export function getCompanyList(params) {
    return instance({
        url: '/enterprise/list',
        params
    })
}
// 设置状态
export function setStatus(data) {
    return instance({
        url: '/enterprise/status',
        method: 'post',
        data
    })
}
// 删除
export function removeCompany(data) {
    return instance({
        url: '/enterprise/remove',
        method: 'post',
        data
    })
}
// 新增
export function addCompany(data) {
    return instance({
        url: '/enterprise/add',
        method: 'post',
        data
    })
}

// 编辑
export function editCompany(data) {
    return instance({
        url: '/enterprise/edit',
        method: 'post',
        data
    })
}